﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <DataTemplate x:Key="UserTemplate">
        <Border BorderThickness="1" BorderBrush="LightGray" CornerRadius="2" Margin="1" Background="{Binding BackgroundColor}" TextBlock.Foreground="Black">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="37" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Image Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Source="{Binding Image}"  Width="32" Height="32" Stretch="UniformToFill" Margin="2 1" />
                <StackPanel Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right">
                    <TextBlock HorizontalAlignment="Right" Text="{Binding Path=TotalPoints, StringFormat=\{0\} pts}" />
                    <TextBlock HorizontalAlignment="Right" Text="{Binding Path=TotalHours, StringFormat=\{0\} hrs}" />
                    <TextBlock HorizontalAlignment="Right" Text="{Binding Path=TotalRemain, StringFormat=\{0\} rem}" />
                </StackPanel>
            </Grid>
        </Border>
    </DataTemplate>

</ResourceDictionary>